package com.example.util;

import com.example.shiro.AccountProfile;
import org.apache.shiro.SecurityUtils;

public class ShiroUtils {
    public static AccountProfile getProfile(){

        Object principal = SecurityUtils.getSubject().getPrincipal();
        return (AccountProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
